package in.muton.edushare.pages.coursepages;

import in.muton.edushare.components.calendar.CalendarPanel;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;

public class CourseCalendar extends CourseBase {

	public CourseCalendar(PageParameters params) {
		super(params);
		int month = params.getAsInteger("3", -1);
		int year = params.getAsInteger("4", -1);
		add(p = new CalendarPanel("calendarPanel", getCourseInstance().getObject(), this,
				month, year));
	}

	@Override
	protected String getActivePage(PageParameters params) {
		return "courseCalendar";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
		+ getCourse().getObject().getCourseName()
		+ " | Calendar | " + p.getMonth() + " | " 
		+ ApplicationConstants.APPLICATION_NAME;
	}
	CalendarPanel p;
}
